<!--{include html_header}-->

<div id="hdw">
	<div id="hd">
		<div id="logo"><a href="/index.php" class="link"><img src="/static/css/i/logo.png" alt="{$INI['system']['sitename']}" /></a></div>
		<div class="guides">
			<div class="city">
				<h2>{$city['name']}</h2>
			</div>
			<!--{if count($hotcities)>1}-->
			<div id="guides-city-change" class="change">City switch</div>
			<div id="guides-city-list" class="city-list">
				<ul>${current_city($city['ename'], $hotcities)}</ul>
				<div class="other"><a href="/city.php">other cities？</a></div>
			</div>
			<!--{/if}-->
		</div>
		<div id="header-subscribe-body" class="subscribe">
		<form action="/subscribe.php" method="post" id="header-subscribe-form">
			<label for="header-subscribe-email" class="text">Want to get deals from {$city['name']} ?</label>
			<input type="hidden" name="city_id" value="{$city['id']}" />
			<input id="header-subscribe-email" type="text" xtip="Your Email Address" value="" class="f-text" name="email" />
			<input type="hidden" value="1" name="cityid" />
			<input type="submit" value="Subscribe" />
		</form>
		<!--{if option_yes('smssubscribe')}-->
		<span><a class="sms" onclick="X.miscajax('sms','subscribe');">&raquo; SMS Subscription</a>&nbsp; <a class="sms" onclick="X.miscajax('sms','unsubscribe');">&raquo; SMS Unsubscribe</a></span>
		<!--{/if}-->
		</div>
		<ul class="nav cf">${current_frontend()}</ul>
		<div class="vcoupon">&raquo;&nbsp;<a href="/account/invite.php">Refer Friends & Get &nbsp;{$currency}${abs($INI['system']['invitecredit'])}</a>&nbsp;&nbsp;&nbsp;&raquo;&nbsp;<a id="verify-coupon-id" href="javascript:;">{$INI['system']['couponname']} verify & claim</a></div>
		<div class="logins">
		<!--{if $login_user}-->
			<ul class="links">
				<li class="username">Welcome，{$login_user['username']}！</li>
				<li class="account"><a href="/order/index.php" id="myaccount" class="account">My {$INI['system']['abbreviation']}</a></li>
				<li class="logout"><a href="/account/logout.php">Logout</a></li>
			</ul>
		<!--{else}-->
			<ul class="links">
				<li class="login"><a href="/account/login.php">Login</a></li>
				<li class="signup"><a href="/account/signup.php">Register</a></li>
			</ul>
				<div style="position:fixed; right:0px;top:70px">
					<?php include "fb_connector.php"; ?>
				</div>
				<div style=" position:fixed; right:0px;top:110px">
				<a href="/redirect.php"><img src="/tw_connect/images/lighter.png" alt="Twitter Connect"/>
				</a>
				</div>

		<!--{/if}-->
			<div class="line islogin"></div>
		</div>
		<ul id="myaccount-menu">${current_account(null)}</ul>
	</div>
</div>

<!--{if $session_notice=Session::Get('notice',true)}-->
<div class="sysmsgw" id="sysmsg-success"><div class="sysmsg"><p>{$session_notice}</p><span class="close">close</span></div></div> 
<!--{/if}-->
<!--{if $session_notice=Session::Get('error',true)}-->
<div class="sysmsgw" id="sysmsg-error"><div class="sysmsg"><p>{$session_notice}</p><span class="close">close</span></div></div> 
<!--{/if}-->
